package com.smart.config;

import org.springframework.stereotype.Service;

/**
 * @Author xiaoqiang
 * @Version RedisSubscriber.java, v 0.1 2025年03月18日 19:42 xiaoqiang
 * @Description: TODO
 */
@Service
public class RedisSubscriber {


    public void testSubscriber() {
        System.out.println("testSubscriber");
    }

    public void handleMessage(byte[] message, byte[] pattern) {
        String receivedChannel = new String(pattern);
        String receivedMessage = new String(message);
        System.out.println("Received message on channel " + receivedChannel + ": " + receivedMessage);
    }

}
